<%@page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>My JSP 'index.jsp' starting page</title>



		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<script type="text/javascript"
			src="http://api.map.baidu.com/api?v=1.3"></script>
	</head>

	<body>
		<div>
			<div id="mapContainer">

			</div>
			<div id="informationContainer">

			</div>
		</div>
	</body>
	
	<script type="text/javascript">
		function myFun(result) {
			var cityName = result.name;
			var url="jsp/cityInformationView.do?city=" + encodeURIComponent(cityName);
			location.href = url;
		}
		var myCity = new BMap.LocalCity();
		myCity.get(myFun);
	</script>
</html>

